import React, { Component } from 'react'
import { Map, Marker } from 'react-amap'
const mapKey = '1234567809843asadasd' //需要自己去高德官网上去申请
class Address extends Component {
    constructor(props) {
        super(props)
        this.state = {
        }
    }
    render() {
        return (
            <div style={{ width: '100%', height: '400px', marginBottom: '6.2em' }}>
                {/* <a style={{ textAlign: 'center' }} href="http://uri.amap.com/marker?position=114.653726,37.915875&name=采摘园&src=mypage&coordinate=gaode&callnative=0">点击查看详细位置</a> */}
                <div style={{ height: '10px' }}

                ></div>
                <a href="http://uri.amap.com/marker?position=114.653726,37.915875&name=采摘园&src=mypage&coordinate=gaode&callnative=0">
                    <Map amapkey={mapKey}
                        position={['lng', 'lat']}
                        plugins={["ToolBar", 'Scale']}
                        zoom={15}
                    >
                    </Map>
                </a>
                <div></div>

            </div>
        )
    }
}

export default Address
